sdtype module

class sd.api.sdtype.SDType(APIContext, handle, *args, **kwargs)

Bases: sd.api.sdapiobject.SDAPIObject

Class used to store information about value’s type

getClassName() → str

Returns the most specific name of the class this APIObject is

getId() → str

Get the type identifier string

getModifier() → sd.api.sdtype.SDTypeModifier

Get the type modifier (see SDTypeModifier enum)

release() → None

Releases an APIObject

class sd.api.sdtype.SDTypeModifier

Bases: enum.Enum

Enum representing the modifier of a type

Auto = 0

The type is uniform (will be evaluated once per evaluation of this node)

Uniform = 1

The type is varying (will be evaluated multiple times for each evaluation of this node; e.g. once per pixel)

Varying = 2